//
//  ViewController.m
//  NetRequest
//
//  Created by LiynXu on 2016/9/24.
//  Copyright © 2016年 LiynXu. All rights reserved.
//

#import "ViewController.h"
#import "NetDataRequest.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *url = @"http://iappfree.candou.com:8080/free/applications/limited?currency=rmb&page=1&limit=20";
    /*NetDataRequest *net = [NetDataRequest standRequest];
    [net GET:url parameters:nil progress:^(NSProgress *progress) {
        NSLog(@"%@",progress);
    } success:^(NSObject *requestData) {
        NSLog(@"%@",requestData);
    } failure:^(NSError *error) {
        NSLog(@"%@",error);
    }];*/
    
    [NetDataRequest GET:url parameters:nil progress:^(NSProgress *progress) {
    } success:^(NSObject *requestData) {
        NSLog(@"%@",requestData);
    } failure:^(NSError *error) {
    }];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
